package cn.hd01.service;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.hd01.repository.entity.COrderPayment;
import cn.hd01.repository.entity.PayTypeReport;

public interface COrderPaymentService extends BaseService<COrderPayment, Integer> {
	
	Page<COrderPayment> findAll(COrderPayment payment, Pageable pageable);
	
	List<COrderPayment> findByOrderId(Integer OrderId);
	
	BigDecimal[] findAllAmount(Integer orderId);
	
	List<Object[]> findRebate();
	
	int deleteByOrderId(Integer orderId);
	
	Page<PayTypeReport> findPayTypeReport(Pageable pageable, PayTypeReport report);
}
